package com.our.sys.project1.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import org.springside.modules.orm.grid.ViewField;

/**
 * 供应商评审
 * @author acer
 *
 */
@Entity
@Table(name = "B_SupplierReview")
public class SupplierReview {
    @ViewField
    private Long id;
    @ViewField
    private Long supplierId;
    @ViewField(header = "供应商名", width = 200, align = "left")
    private String supplier;
    @ViewField(header = "动作名称", width = 200, align = "left")
    private String typeCode;//2,调出黑名单；1,供应商降级
    @ViewField(header = "降级等级", width = 200, align = "left")
    private String demotion;
    @ViewField(header = "申请人", width = 150, align = "left")
    private String appAccount;
    @ViewField(header = "申请原因", width = 400, align = "left")
    private String applicationNote;
    @ViewField(header = "申请时间", width = 150, align = "left")
    private String appTime;
    @ViewField(header = "审批状态", width = 100, align = "left")
    private String checkState;//0，未审核，1通过，2驳回
    @ViewField(header = "审批（允许/不允许）原因", width = 400, align = "left")
    private String checkNote;
    @ViewField
    private Long appAccountId;
    @ViewField
    private Long checkAccountId;
    @ViewField(header = "审核人", width = 150, align = "left")
    private String checkAccount;
    @ViewField(header = "审核时间", width = 150, align = "left")
    private String checkTime;

    @Id
    @GeneratedValue(strategy = GenerationType.TABLE, generator = "Id_Generator")
    @TableGenerator(name = "Id_Generator", table = "ID_GENERATOR", pkColumnName = "GEN_NAME", valueColumnName = "GEN_VAL", pkColumnValue = "B_SupplierReview")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public String getSupplier() {
        return supplier;
    }

    public void setSupplier(String supplier) {
        this.supplier = supplier;
    }

    public String getTypeCode() {
        return typeCode;
    }

    public void setTypeCode(String typeCode) {
        this.typeCode = typeCode;
    }

    public String getAppAccount() {
        return appAccount;
    }

    public void setAppAccount(String appAccount) {
        this.appAccount = appAccount;
    }

    public String getApplicationNote() {
        return applicationNote;
    }

    public void setApplicationNote(String applicationNote) {
        this.applicationNote = applicationNote;
    }

    public String getAppTime() {
        return appTime;
    }

    public void setAppTime(String appTime) {
        this.appTime = appTime;
    }

    public String getCheckState() {
        return checkState;
    }

    public void setCheckState(String checkState) {
        this.checkState = checkState;
    }

    public String getCheckNote() {
        return checkNote;
    }

    public void setCheckNote(String checkNote) {
        this.checkNote = checkNote;
    }

    public Long getAppAccountId() {
        return appAccountId;
    }

    public void setAppAccountId(Long appAccountId) {
        this.appAccountId = appAccountId;
    }

    public Long getCheckAccountId() {
        return checkAccountId;
    }

    public void setCheckAccountId(Long checkAccountId) {
        this.checkAccountId = checkAccountId;
    }

    public String getCheckAccount() {
        return checkAccount;
    }

    public void setCheckAccount(String checkAccount) {
        this.checkAccount = checkAccount;
    }

    public String getCheckTime() {
        return checkTime;
    }

    public void setCheckTime(String checkTime) {
        this.checkTime = checkTime;
    }

    public String getDemotion() {
        return demotion;
    }

    public void setDemotion(String demotion) {
        this.demotion = demotion;
    }

}
